﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="oa.aspx.cs" Inherits="hyuan" %>

<%@ Register src="common/top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="common/foot.ascx" tagname="foot" tagprefix="uc2" %>

<%@ Register src="common/menu-oa.ascx" tagname="menu" tagprefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="天台高佳计算机科技有限公司、平桥镇中小企业生产力促进中心">
<meta name="description" content="平桥镇中小企业生产力促进中心、生产力促进中心、中国过滤布名城、天台县平桥镇、平桥镇、全国工业用布集散地">
<meta name="keywords" content="平桥镇中小企业生产力促进中心|生产力促进中心|中国过滤布名城|天台县平桥镇|平桥镇|全国工业用布集散地">
<title>天台县平桥镇中小企业生产力促进中心</title>
<link href="css/css_whir.css" rel="stylesheet" type="text/css" />
<script src="Script/cookie.js" type="text/javascript"></script>
</head>

<body onunload="javascript:unLoad();" onload="javascript:load();">
    <form id="LogonForm" name="LogonForm" runat="server" method="post" action="http://219.137.166.155:7001/defaultroot/LogonAction.do">
   <!--top-->
 <uc1:top ID="top1" runat="server" />
<!--top-end-->
   
<div class="mainbox">
	<!--left-->
    <div class="rightbox" style="float:left;">
    
    	
        
        <uc3:menu ID="menu1" runat="server" />
    
    	
        
    </div>
    <!--left-end-->    
    
    <!--right-->
    <div class="neibox">
    	<h1 class="cenbox_h1 neibox_h1">OA登录</h1>
         
        <div class="ly">
<table width="500" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="92" height="35" align="right" style="padding-right:10px;">用户名:</td>

    <td><input type="text" style=" width:150px; height:22px; line-height:22px; color:#666; border:1px solid #C7C7C7; padding-left:3px;" name="userName" size="19" id="userName" runat="server" /><font class="rcolor">*</font></td>
  </tr>
  <tr>
    <td height="35" align="right" style="padding-right:10px;">密&nbsp;&nbsp;&nbsp;码:</td>
    <td><input type="password" style=" width:150px; height:22px; line-height:22px; color:#666; border:1px solid #C7C7C7; padding-left:3px;" id="userPassword" name="userPassword" size="19"  runat="server" /><font class="rcolor">*</font></td>
  </tr>
  <tr>
    <td height="35" align="right" style="padding-right:10px;"></td>
    <td><input type="button" class="txt100104_3 txt100104_4" value="" onclick="javascript:submitForm();" /></td>
  </tr>
</table>

</div>
        <div class="clear"></div> 
       
          <input type="hidden"  name="domainAccount" value="whir">
          <input type="hidden"  name="localeCode" value="zh_cn">

        <br />
        <br />  
        
    </div>    
    <!--right-end-->
    
    <div class="clear"></div>  
</div>

<!--bottom-->
<uc2:foot ID="foot1" runat="server" />
<!--bottom-end-->


<script language="javascript" type="text/javascript">

document.onkeydown=look;
function look(){
	if(event.keyCode=="13"){
		submitForm();
	}
}
function submitForm(){
    if(checkForm()){
        document.LogonForm.userPassword.blur();
        document.LogonForm.submit();
    }
}
function checkForm(){
     if(document.LogonForm.userName.value==""){
        alert("请输入正确的用户账号！");
        document.LogonForm.userName.focus();
        return false;
    }else if( document.LogonForm.userPassword.value==""){
        alert("请输入正确的密码！");
        document.LogonForm.userPassword.focus();
        return false;
    }
    return true;
}
function unLoad(){
    setCookie("ezofficeUserName",document.LogonForm.userName.value, expdate, "/", null, false);
    setCookie("ezofficeDomainAccount",document.LogonForm.domainAccount.value, expdate, "/", null, false);
}

function load(){
    //deleteCookie("EZOFFICEUSERNAME");
    if(Cookie("ezofficeUserName") != null || Cookie("ezofficeDomainAccount") != null){
        if(Cookie("ezofficeUserName") != null){
            document.LogonForm.userName.value = Cookie("ezofficeUserName");
        }
        if(Cookie("ezofficeDomainAccount") != null){
            document.LogonForm.domainAccount.value = Cookie("ezofficeDomainAccount");
        }
    }
	
		document.LogonForm.userPassword.focus();
	
}

</script> 
    </form>
</body>
</html>
